package com.sxfans.designmodel.structed.proxy.jse;

import java.lang.reflect.Proxy;

public class JseProxyTest {
	public static void main(String[] args) {
		ITarget target = new TargetImpl();
		BusinessHandler pxy = new BusinessHandler(target);
		ITarget t = (ITarget) Proxy.newProxyInstance(
				  		target.getClass().getClassLoader(),
				  		target.getClass().getInterfaces(),
				  		pxy);
		t.show1();
	}
}
